<?php
namespace Home\Controller;
use Think\Controller;
class PublicController extends Controller {
    Public function _initialize()
    {
        if(!isset($_COOKIE['name']) or !isset($_COOKIE['name'])){
            $this->redirect('Login/index');
        }
    }
}